package com.itheima.day09;

import java.util.Random;

public class day09tounengliang {
    public static void main(String[] args) {
        int[]arr = new int[30];
        int sum = 0;
        Random r = new Random();
        for (int i = 0; i < arr.length; i++) {
            arr[i] = r.nextInt(100) + 1;
            if(arr[i] >=5){
                sum += arr[i];
            }
        }
        System.out.println(sum);
    }
}
